package com.cqrt.entity;

import com.cqrt.constant.RTTableTypeConstant;
import com.ty.basic.entity.CTyEntityBaseDO;
import com.ty.basic.util.TyOtype;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigInteger;


@Data
@Entity
@TyOtype(
        displayName = RTTableTypeConstant.TYPE_TEMPLATE_ATTR_LINK
)
@Table(name = "RT_PRJ_TEMPLATE_ATTR_LINK")
public class RTTemplateAttrLinkDO extends CTyEntityBaseDO {

    @Id
    @Column(name = "OID", nullable = false)
    private BigInteger oid;

    @Column(name = "INTERNAL_NAME")
    private String internalName;

    @Column(name = "VALUE")
    private String value;

    @TyOtype(
            name = RTTableTypeConstant.TYPE_TEMPLATE_ATTR_LINK
    )
    @Column(name = "OTYPE")
    private String otype= RTTableTypeConstant.TYPE_TEMPLATE_ATTR_LINK;

    @Column(name = "TEMPLATE_ID")
    private BigInteger templateId;


}